﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/Site.Master" AutoEventWireup="true"
	CodeBehind="Profile.aspx.cs" Inherits="Hematology.UserSite.Profile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphRecent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphHeadNews" runat="server">
	<hmt:PageTitle runat="server" ID="ptTitle" Text="Профиль" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphBody" runat="server">
	<asp:UpdatePanel runat="server" ID="upProfile" UpdateMode="Conditional">
		<ContentTemplate>
			<div class="container2">
				<div id="left-div">
					<div class="post-wrapper">
						<div class="post">
							<div class="homepost-full">
								<h2 class="pageSubTitle">
									<asp:Label ID="lblTitle" runat="server" />
								</h2>
								<asp:MultiView runat="server" ID="mvProfile">
									<asp:View runat="server" ID="vProfileGeneral">
										<div class="profileData">
											<div class="profilePhotoNameBlock">
												<div class="profilePhoto">
													<asp:Image runat="server" ID="imgPhoto" ImageUrl="img/emptyPhoto.png" />
												</div>
												<div class="profileName">
													<hmt:ProfileItem runat="server" ID="piFirstName" TargetProfileItem="FirstName" />
													<hmt:ProfileItem runat="server" ID="piMiddleName" TargetProfileItem="MiddleName" />
													<hmt:ProfileItem runat="server" ID="piLastName" TargetProfileItem="LastName" />
													<hmt:ProfileItem runat="server" ID="piEmail" TargetProfileItem="Email" />
													<hmt:ProfileItem runat="server" ID="piBithDate" TargetProfileItem="BirthDate" />
													<hmt:ProfileItem runat="server" ID="piPhone1" TargetProfileItem="ContactPhone" />
													<hmt:ProfileItem runat="server" ID="piPhone2" TargetProfileItem="AdditionalPhone" />
													<hmt:ProfileItem runat="server" ID="piSkype" TargetProfileItem="Skype" />
												</div>
											</div>
											<div class="profileExtendedInfo">
												<hmt:ProfileItem runat="server" ID="piJobCountry" TargetProfileItem="JobCountry" />
												<hmt:ProfileItem runat="server" ID="piJobRegion" TargetProfileItem="JobRegion" />
												<hmt:ProfileItem runat="server" ID="piJobCity" TargetProfileItem="JobCity" />
												<hmt:ProfileItem runat="server" ID="piJob" TargetProfileItem="Job" />
												<hmt:ProfileItem runat="server" ID="piJobPosition" TargetProfileItem="JobPosition" />
											</div>
										</div>
										<div class="profileGrid">
											<div class="centeredButton">
												<asp:Button runat="server" ID="btnProfileSaveGeneralChanges" Text='<%$ Resources:UserSite, resSave %>'
													OnClick="btnProfileSaveGeneralChanges_Click" />
											</div>
										</div>
									</asp:View>
									<asp:View runat="server" ID="vProfileChangePassword">
										<div class="userCenteredForm">
											<div class="userCenteredBlock">
												<div class="userCenteredTitle">
													Старый пароль
												</div>
												<div class="userCenteredControl">
													<asp:TextBox ID="txtOldPassword" runat="server" TextMode="Password" MaxLength="128" />
													<asp:CustomValidator runat="server" ID="validOldPassword" ControlToValidate="txtOldPassword"
														ValidateEmptyText="True" ValidationGroup="vgChangePassword" OnServerValidate="validOldPassword_ServerValidate" />
												</div>
											</div>
											<div class="userCenteredBlock">
												<div class="userCenteredTitle">
													Новый пароль
												</div>
												<div class="userCenteredControl">
													<asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password" MaxLength="128" />
												</div>
											</div>
											<div class="userCenteredBlock">
												<div class="userCenteredTitle">
													Повтор нового пароля
												</div>
												<div class="userCenteredControl">
													<asp:TextBox ID="txtRepeatNewPassword" runat="server" TextMode="Password" MaxLength="128" />
													<asp:CustomValidator runat="server" ID="validEqualNewPasswords" ControlToValidate="txtOldPassword"
														ValidateEmptyText="True" ValidationGroup="vgChangePassword" OnServerValidate="validOldPassword_ServerValidate" />
												</div>
											</div>
											<div class="userCenteredBlock">
												<div class="userCenteredSubmit">
													<asp:Button runat="server" ID="btnChangePassword" Text="Сменить пароль" OnClick="btnChangePassword_Click"
														ValidationGroup="vgChangePassword" />
												</div>
											</div>
										</div>
									</asp:View>
									<asp:View runat="server" ID="vProfileAddLinks">
									</asp:View>
								</asp:MultiView>
							</div>
						</div>
					</div>
				</div>
			</div>
		</ContentTemplate>
	</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphPanel" runat="server">
	<div class="sidebar-box">
		<h2>
			<asp:Label ID="lblSideBarCaption" runat="server" Text='<%$ Resources:UserSite, resEditProfile %>' />
		</h2>
		<ul>
			<li><a href="/Profile.aspx?view=General">Общая информация</a></li>
			<li><a href="/Profile.aspx?view=ChangePassword">Сменить пароль</a></li>
			<li><a href="/Profile.aspx?view=AddLinks">Добавить ссылки на статьи</a></li>
		</ul>
	</div>
</asp:Content>